array arithmetic